public class Main {
    public static void main(String[] args) {
        String str1 = new String("abcdefgh");
        String str2 = str1.substring(4);
        String str3 = str1.substring(4,6);//[4,6)

        System.out.println(str2);
        System.out.println(str3);
    }
}
